package com.suse.service.admin.edu.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "ChapterSaveParam",description = "章节添加参数")
public class ChapterSaveParam {

    @ApiModelProperty(value = "课程ID",required = true)
    @NotEmpty(message = "课程ID不能为空")
    private String courseId;

    @ApiModelProperty(value = "章节名称",required = true)
    @NotEmpty(message = "章节名称不能为空")
    private String title;

    @ApiModelProperty(value = "章节排序",required = true)
    @NotNull(message = "章节排序不能为空")
    private Integer sort;


}
